#include "T_Action.h"
#include <vector>

class Sequence:public T_Action{
protected:
	std::vector<T_Action *>m_Actions;
public:
	//the last parameter must be NULL
	static Sequence *create(T_Action *a,...);
	~Sequence();

	virtual bool init(T_Node *);
	virtual bool isDone()const;
	virtual void startWithTarget(T_Node *node);
	virtual void update(int dt);
	virtual ActionType getActionType(){return SequenceAction;}
};